package com.wenwu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsExcavation;
import com.wenwu.common.bean.RelicsExcavationExample;
import com.wenwu.common.bean.RelicsExcavationWithBLOBs;
import com.wenwu.common.page.PaginationVO;

public interface RelicsExcavationMapper  extends Dao {
    int countByExample(RelicsExcavationExample example);

    int deleteByExample(RelicsExcavationExample example);

    int deleteByPrimaryKey(Integer excId);

    int insert(RelicsExcavationWithBLOBs record);

    int insertSelective(RelicsExcavationWithBLOBs record);

    List<RelicsExcavationWithBLOBs> selectByExampleWithBLOBs(RelicsExcavationExample example);

    List<RelicsExcavation> selectByExample(RelicsExcavationExample example);

    RelicsExcavationWithBLOBs selectByPrimaryKey(Integer excId);

    int updateByExampleSelective(@Param("record") RelicsExcavationWithBLOBs record, @Param("example") RelicsExcavationExample example);

    int updateByExampleWithBLOBs(@Param("record") RelicsExcavationWithBLOBs record, @Param("example") RelicsExcavationExample example);

    int updateByExample(@Param("record") RelicsExcavation record, @Param("example") RelicsExcavationExample example);

    int updateByPrimaryKeySelective(RelicsExcavationWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(RelicsExcavationWithBLOBs record);

    int updateByPrimaryKey(RelicsExcavation record);
    
    /**
     * 分页条件查询
     * @param relicsExcavation
     * @param pageVo
     * @return
     */
    List<RelicsExcavationWithBLOBs> selectListByPage(@Param("relicsExcavation") RelicsExcavationWithBLOBs relicsExcavation,@Param("pageVo") PaginationVO pageVo);
    
    /**
	 * 分页查询的所有结果总数量
	 * @param relicsExcavation
	 * @param pageVo
	 * @return
	 */
	int selectTotalRecord(@Param("relicsExcavation")RelicsExcavationWithBLOBs relicsExcavation);

	/**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList);
}